package OutPutStreamWriterDemo;
import  java.io.FileOutputStream;
import java.io.OutputStreamWriter;
import java.io.IOException;

class OutputStreamWriterDemo {
    public static void main(String[] args) throws IOException {
        OutputStreamWriter osw=new OutputStreamWriter(new FileOutputStream("demo\\src\\fos.txt"));
      /*  osw.write(97);
        osw.flush();
        osw.write(98);
        osw.flush(); */
        char[] chs={'a','b','c','d','e'};
        //osw.write(chs);


     //   osw.write(chs,1,3);

        //osw.write("abcde");

        osw.write("abcde",1,3);
        osw.close();

    }
}
